package com.mycompany.sislic.dominio;
/**
 *
 * @author Edgard
 */
public class TGiroRequisitoId  implements java.io.Serializable {


     private int codigoGiro;
     private int codigoRequisito;

    public TGiroRequisitoId() {
    }

    public TGiroRequisitoId(int codigoGiro, int codigoRequisito) {
       this.codigoGiro = codigoGiro;
       this.codigoRequisito = codigoRequisito;
    }
   
    public int getCodigoGiro() {
        return this.codigoGiro;
    }
    
    public void setCodigoGiro(int codigoGiro) {
        this.codigoGiro = codigoGiro;
    }
    public int getCodigoRequisito() {
        return this.codigoRequisito;
    }
    
    public void setCodigoRequisito(int codigoRequisito) {
        this.codigoRequisito = codigoRequisito;
    }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof TGiroRequisitoId) ) return false;
		 TGiroRequisitoId castOther = ( TGiroRequisitoId ) other; 
         
		 return (this.getCodigoGiro()==castOther.getCodigoGiro())
 && (this.getCodigoRequisito()==castOther.getCodigoRequisito());
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + this.getCodigoGiro();
         result = 37 * result + this.getCodigoRequisito();
         return result;
   }   


}


